const getters = {
  isShowAsideTitle: (state) => state.aside.isShowAsideTitle,
  isShowRouter: (state) => state.aside.isShowRouter,
  tagsArray: (state) => state.aside.tagsArray,
  openMenus: (state) => state.aside.openMenus,
  currentPage: (state) => state.aside.currentPage,
  menuCache: (state) => state.aside.menuCache,
  asideClassName: (state) => state.aside.asideClassName,
  crumbs: (state) => state.aside.crumbs,
  theme: (state) => state.aside.theme,
  userId: (state) => state.user.userId,
  username: (state) => state.user.username,
  name: (state) => state.user.name,
  role: (state) => state.user.role,
  avatar: (state) => state.user.avatar,
  major: (state) => state.user.major,
  qq: (state) => state.user.qq,
  phone: (state) => state.user.phone,
  weixin: (state) => state.user.weixin,
  profile: (state) => state.user.profile,
  type: (state) => (state.user.role === 'admin' || state.user.role === 'superAdmin' ? 'primary' : 'warning'),
  disabled: (state) => !(state.user.role === 'admin' || state.user.role === 'superAdmin'),
  buttonColor: () => 'rgba(65,60,67,0.61)',
}

export default getters
